package com.hkd.product_service.api.fallback;

import com.hkd.common.api.ApiResponse;
import com.hkd.common.api.BaseFallBack;
import com.hkd.common.api.BaseFallbackFactory;
import com.hkd.product_service.api.ProductCommentService;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author HKD
 * @date 2022/9/17 21:46
 */
@Component
public class ProductCommentServiceImplFallback extends BaseFallbackFactory<ProductCommentService> {
    @Override
    public ProductCommentService create(Throwable throwable) {
        FeignFallback fallback = new FeignFallback();
        fallback.setCause(throwable);
        return fallback;
    }

    public class FeignFallback extends BaseFallBack implements ProductCommentService {
    }
}
